<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.ArrayList,com.scalar.chiptrack.sales.ReasonCode,com.scalar.chiptrack.utils.ConfigManager"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<script language="javascript">
// SharatH on July 31, 2003
function showErrorReportPage()
{
    newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
    newWindow.focus();
}
</script>


<HTML><HEAD>
<TITLE>Scalarsoft -ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
</HEAD>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr bgcolor="#8C87A8">
    <td height="30" valign="top" align=center><font class="NArialL">
    <center>ReasonCodes Descriptions</center>        
    </td>
    <td valign="top" align="right">
        <a href="javascript:window.close()"><font class="NArial">Close</font></a>
    </td>
</tr>
</table>

<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
   <table border="0" width="100%" bordercolor="#FFFFFF">
	<tr>
	  <td width="15%" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Reason Code</font></td>
          <td width="20%" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Code Type</font></td>
	  <td width="65%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Description</font></td>	  
	</tr>
        
        <%
                //Get the reason codes                
                ArrayList list = (ArrayList) request.getAttribute("reasonCodes");
                if(list != null) {
                //Loop thru the tax list and show the values
                for(int i=0; i<list.size(); i++)
                {	
                    ReasonCode codes = (ReasonCode)list.get(i);                       
                    String codeNo = codes.getCodeNo();
                    String codeName = codes.getCodeName();
                    String codeType = codes.getCodeType();
         %>                
                    <tr>
                        <td width="15%" bgcolor='#FFFFEE' class="NArialL"><%=codeNo%></td>
                        <td width="20%" bgcolor='#FFFFEE' class="NArialL"><%=codeType%></td>
                        <td width="65%" bgcolor='#FFFFEE' class="NArialL"><%=codeName%></td>
                    </tr>                                        
        <%            
                }
               }
        %>
	
    </table>

</body>
</html>
